package org.hong.monkey.crawl

/**
 * Created by open on 2016/12/15.
 */
object WebkitFunctions {

    // WebKit
    val WEBKIT_LONG_CREATE_STRING_USERAGENT = 1
    val WEBKIT_LONG_DESTROY_LONG_REF = 2
    val WEBKIT_LONG_GET_LONG_REF_STRING_URL = 3
    val WEBKIT_BOOL_SETDATABASEENABLED_LONG_REF_BOOL_ENABLE = 4
    val WEBKIT_LONG_SETCOOKIE_LONG_REF_STRING_COOKIES_STRING_URL = 16
    val WEBKIT_LONG_DELETECOOKIE_LONG_REF_STRING_CNAME = 17
    val WEBKIT_STRING_GETSTATEINFO = 58
    val WEBKIT_LONG_CHECK_AVAILABLE = 59

    // WebPage
    val WEBPAGE_STRING_GETTITLE_LONG_REF = 5
    val WEBPAGE_STRING_GETDOMTREEDUMP_LONG_REF = 6
    val WEBPAGE_STRING_GETPAGESOURCE_LONG_REF = 7
    val WEBPAGE_STRING_GETURL_LONG_REF = 8
    val WEBPAGE_BOOL_ISJAVASCRIPTENABLED_LONG_REF = 9
    val WEBPAGE_VOID_SETJAVASCRIPTENABLED_LONG_REF_BOOL_ENABLE = 10
    val WEBPAGE_OBJECT_EVALUATEJS_OBJECT_DRIVER_LONG_REF_OBJECTARRAY_ARGUMENTS = 11
    val WEBPAGE_LONG_GETELEMENTBYID_LONG_REF_STRING_QUERY = 12
    val WEBPAGE_LONG_SETCOOKIE_LONG_REF_STRING_COOKIES = 13
    val WEBPAGE_STRING_COOKIES_LONG_REF = 14
    val WEBPAGE_VOID_SETFILTERRULE_STRING_RULES = 15
    val WEBPAGE_LONG_GETELEMENTSBYTAGNAME_LONG_REF_STRING_QUERY = 18
    val WEBPAGE_LONG_GETELEMENTSBYNAME_LONG_REF_STRING_QUERY = 19
    val WEBPAGE_LONG_GETELEMENTSBYXPATH_LONG_REF_STRING_QUERY = 20
    val WEBPAGE_LONG_GETELEMENTBYCSSSELECTOR_LONG_REF_STRING_QUERY = 21
    val WEBPAGE_LONG_GETELEMENTSBYCSSSELECTOR_LONG_REF_STRING_QUERY = 22
    val WEBPAGE_VOID_GOBACK_LONG_REF = 30
    val WEBPAGE_VOID_GOFORWARD_LONG_REF = 31
    val WEBPAGE_LONG_REFRESH_LONG_REF = 32
    val WEBPAGE_LONG_ACTIVEELEMENT = 42
    val WEBPAGE_LONG_SELECTFRAMEBYNAME_STRING_NAME = 43
    val WEBPAGE_LONG_SELECTFRAMEBYIDX_LONG_IDX = 44
    val WEBPAGE_STRING_GETALERTTEXT_LONG_REF_BOOL_CLR = 48
    val WEBPAGE_VOID_SETVIEWPORTSIZE_INT_W_INT_H = 51
    val WEBPAGE_VOID_LOADURL_LONG_REF_STRING_ADDRESS_STRING_OPERATION_QMAP_STRING_STRING_HEADERS_STRING_BODYSTRING_STRING_ENCODING = 55
    val WEBPAGE_VOID_SETHTML_LONG_REF_STRING_HTML = 56
    val WEBPAGE_VOID_SETSETTING_LONG_REF_STRING_NAME_STRING_SETTING = 57
    val WEBPAGE_STRING_RENDER_IMAGE_BASE64 = 60
    val WEBPAGE_LONG_SET_DESTROY_TIME = 61
    val WEBPAGE_VOID_SCROLL = 62
    val WEBPAGE_STRING_GETDOMTREESOURCE_LONG_REF = 66
    val WEBPAGE_STRING_POSTDATA_LONG_REF = 67
    val WEBPAGE_STRING_METHOD_LONG_REF = 68
    val WEBPAGE_LONG_DOWNLOAD_LONG_REF = 69
    val WEBPAGE_VOID_MOUSEMOVE_LONG_REF = 70;
    val WEBPAGE_VOID_MOUSEMOVE_INT_X_INT_Y = 71;

    // Element
    val WEBELEMENT_STRING_GETTAGNAME_LONG_REF = 23
    val WEBELEMENT_STRING_GETATTRIBUTE_LONG_REF_STRING_NAME = 24
    val WEBELEMENT_STRING_GETPROPERTY_LONG_REF_STRING_NAME = 25
    val WEBELEMENT_STRING_GETTEXT_LONG_REF = 26
    val WEBELEMENT_STRING_GETVALUE_LONG_REF = 27
    val WEBELEMENT_LONG_SENDKEYS_LONG_REF_STRING_TYPE_LONG_KEYS = 28
    val WEBELEMENT_LONG_SETVALUE_LONG_REF_STRING_VAL = 29
    val WEBELEMENT_LONG_SUBMIT_LONG_REF = 33
    val WEBELEMENT_LONG_CLICK_LONG_REF = 34
    val WEBELEMENT_LONG_RESET_LONG_REF = 35
    val WEBELEMENT_LONG_TOGGLE_LONG_REF = 36
    val WEBELEMENT_LONG_FOCUS_LONG_REF = 37
    val WEBELEMENT_LONG_SELECTED_LONG_REF = 38
    val WEBELEMENT_LONG_SETSELECTED_LONG_REF = 39
    val WEBELEMENT_LONG_OPTIONINDEX_LONG_REF = 40
    val WEBELEMENT_LONG_STALE_LONG_REF = 41
    val WEBELEMENT_BOOL_ISVISIBLE_LONG_REF = 45
    val WEBELEMENT_LONG_DRAG_LONG_REF_INT_TOX_INT_TOY_INT_DURATION = 46
    val WEBELEMENT_RECT_GETRECT_LONG_REF = 47
    val WEBELEMENT_STRING_GETINNERXML_LONG_REF = 49
    val WEBELEMENT_STRING_GETOUTERXML_LONG_REF = 50
    val WEBELEMENT_LONG_TYPE_LONG_REF_STRING_VAL = 52
    val WEBELEMENT_LONG_CHECKED_LONG_REF = 53
    val WEBELEMENT_LONG_SETCHECKED_LONG_REF = 54
    val WEBELEMENT_VOID_SETATTRIBUTE = 63
    val WEBELEMENT_VOID_REMOVEATTRIBUTE = 64
    val WEBELEMENT_VOID_GETCHILDSBYCSSSELECTOR = 65
}
